package com.dj.product.k2faas.jpa.view;

import org.springframework.jdbc.core.namedparam.MapSqlParameterSource;

import java.util.Map;

/**
 * Created by 丁建 on 2025/9/23 09:54
 *
 * @author 丁建
 */
public class K2MapSqlParameterSource extends MapSqlParameterSource {
    public K2MapSqlParameterSource(Map<String, Object> object) {
        super(object);
    }

    @Override
    public Object getValue(String paramName) throws IllegalArgumentException {
        Object value = super.getValue(paramName);
        if (value instanceof Enum) {
            return value.toString();
        }

        return value;
    }

}
